package com.csu.ourpetstore1.persistence;

import com.csu.ourpetstore1.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
public interface OrderMapper {

    List<Order> getOrders();

    List<Order> getOrdersByUsername(String username);

    Order getOrder(int orderId);

    void insertOrder(Order order);

    void insertOrderStatus(Order order);

    //通过id修改订单
    void updateOrder(int orderId);

    //通过id删除订单
    void deleteOrder(int orderId);

    void deleteOrderStatus(int orderId);

    //发货功能

}
